{
    // type还可以给类型起别名
    type sex = "男" | "女";
    type bb = boolean;


    // type User9 = {
    //     name: string,
    //     age: number,
    //     show():string,
    //     [key: string]:any,
    //     sex:sex,
    //     boo:bb
    // }

    interface User9{
        name: string,
        age: number,
        show():string,
        [key: string]:any,
        sex:sex,
        boo:bb
    }

    const hdms: User9 = {name:"后盾人",age:18,show:() => "houduren",hh:false,sex:"女",boo:false};
    console.log(hdms);
}